<template>
  <div id="app">
    <keep-alive>
      <router-view v-if="this.$router.meta&&this.$router.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!this.$router.meta||(this.$router.meta&&!this.$router.meta.keepAlive)"></router-view>
    <!--这里是不会被缓存的组件-->
  </div>
</template>

<style lang="scss">
#app {
  color: $c333;
  height: 100%;

  >div{
    min-height: 100%;
  }
}
</style>
